package study.函数式接口;

import study.User;

import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Predicate;

/**
 * @Author 金贵权
 * @Date 2023/6/13 17:19
 **/
public class Demo03 {
    public static void main(String[] args) {
        Predicate<String> predicate = (String s)-> !s.isEmpty();
        Function<Integer, User> function = User::new;
        User apply = function.apply(23);
        System.out.println(apply);

        BiFunction<Integer,String,User> function1 = User::new;
        User apply1 = function1.apply(24, "张三");
        System.out.println(apply1);

    }
}
